package com.chinasoft.main;

import com.chinasoft.fanzhongyu.FanZhongyuTrueWord;
import com.chinasoft.lizezhen.LeZeZhenTrueWord;
import com.chinasoft.lu.LuTrueWord;
import com.chinasoft.teacher.TeacherTrueWord;
import com.chinasoft.w2k.W2kTrueWord;
import com.chinasoft.yangyi.YanhgYiTrueWord;
import com.chinasoft.yuan.YaoTrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.Scanner;

public class TwMain {

    public static void main(String[] args) {

        List<TrueWord> twList = new ArrayList();
        twList.add(new TeacherTrueWord());
        twList.add(new FanZhongyuTrueWord());
        twList.add(new LuTrueWord());
        twList.add(new LeZeZhenTrueWord());
        twList.add(new YaoTrueWord());
//        twList.add(new YanhgYiTrueWord());
        twList.add(new W2kTrueWord());


        Random random = new Random();
        Scanner scanner = new Scanner(System.in);

        for(;;) {
            int index = random.nextInt(twList.size());
            TrueWord tw = twList.get(index);
            System.out.println(tw.getName() + " 说 " + tw.getWord());
            scanner.nextLine();
        }

    }
}
